package com.iweb.work;

public class Tank2 extends Weapen {
    private String dir;

    public void setDir(String dir){
        this.dir=dir;
    }

    public String getDir() {
        return dir;
    }
    @Override
    public void attack(){
        System.out.println("我是Tank,向"+dir+speed);
        super.show();
    }

    public Tank2(){}

}
